﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


    namespace Problem1
    {
        class FactoryB : Factory
        {
            static private FactoryB factory;
            private  FactoryB()
            { 
        
            }
    
            
            public static FactoryB getInstance()
            {
                if (factory == null)
                    factory = new FactoryB();
                return factory;
            }
            public Sedan createSedan(String culoare)
            {
                return new SedanB(culoare, "4X4", SedanMotorizari.Benzina, SedanDimensiuni.Mic, SedanDotari.GeamuriFumurii);
            }

            public  Coupe createCoupe(String culoare)
            {
                return new CoupeB(culoare, "2X4", CoupeMotorizari.Hidrogen, CoupeDimensiuni.Mic, CoupeDotari.GeamuriNegre);
            }

            public  Mini createMini(String culoare)
            {
                return new MiniB( culoare, "2X2", MiniMotorizari.Benzina, MiniDimensiuni.Mic, MiniDotari.AC);
            }
        }
    }


